Créer un bouton skiné

XSkinButton( "text", left, top, width, height, "function")

 

Paramètres

 text  Le texte du bouton de contrôle.
 left  Espace avant le côté gauche du contrôle.
 top  Espace avant le début du contrôle.
 width  La largeur du contrôle. 
 height  La hauteur du contrôle.
 function  La fonction à appeler lorsque le bouton est cliqué.

Exemple

#Include <XSkin.au3>

; folder of skin
$Skin_Folder = @ScriptDir & "\Skins\Black-Yellow"
$XSkinGui = XSkinGUICreate( "My GUI", 400, 450, $Skin_Folder)
$button_1 = XSkinButton("Button 1", 145, 100, 100, 35, "Hello")
GUISetState()

While 1
    MouseOver() ;makes the button flash on mouseover
    Sleep(10)
WEnd

Func Hello()
    MsgBox(64, "XSkin", "Test Button 1", 3)
EndFunc